Optimal. Leaf size=254 \[ \frac {2 \sqrt {c+d} \sqrt {g} \sqrt {\frac {c (1-\csc (e+f x))}{c+d}} \sqrt {\frac {c (1+\csc (e+f x))}{c-d}} \Pi \left (\frac {c+d}{d};\sin ^{-1}\left (\frac {\sqrt {g} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {g \sin (e+f x)}}\right )|-\frac {c+d}{c-d}\right ) \tan (e+f x)}{b f}+\frac {2 (b c-a d) \sqrt {-\cot ^2(e+f x)} \sqrt {\frac {d+c \csc (e+f x)}{c+d}} \Pi \left (\frac {2 a}{a+b};\sin ^{-1}\left (\frac {\sqrt {1-\csc (e+f x)}}{\sqrt {2}}\right )|\frac {2 c}{c+d}\right ) \sqrt {g \sin (e+f x)} \tan (e+f x)}{b (a+b) f \sqrt {c+d \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.34, antiderivative size = 254, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {3008, 2888,
3016} \begin {gather*} \frac {2 (b c-a d) \tan (e+f x) \sqrt {-\cot ^2(e+f x)} \sqrt {g \sin (e+f x)} \sqrt {\frac {c \csc (e+f x)+d}{c+d}} \Pi \left (\frac {2 a}{a+b};\text {ArcSin}\left (\frac {\sqrt {1-\csc (e+f x)}}{\sqrt {2}}\right )|\frac {2 c}{c+d}\right )}{b f (a+b) \sqrt {c+d \sin (e+f x)}}+\frac {2 \sqrt {g} \sqrt {c+d} \tan (e+f x) \sqrt {\frac {c (1-\csc (e+f x))}{c+d}} \sqrt {\frac {c (\csc (e+f x)+1)}{c-d}} \Pi \left (\frac {c+d}{d};\text {ArcSin}\left (\frac {\sqrt {g} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {g \sin (e+f x)}}\right )|-\frac {c+d}{c-d}\right )}{b f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2888
Rule 3008
Rule 3016
Rubi steps
\begin {align*} \int \frac {\sqrt {g \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{a+b \sin (e+f x)} \, dx &=\frac {d \int \frac {\sqrt {g \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx}{b}-\frac {(-b c+a d) \int \frac {\sqrt {g \sin (e+f x)}}{(a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}} \, dx}{b}\\ &=\frac {2 \sqrt {c+d} \sqrt {g} \sqrt {\frac {c (1-\csc (e+f x))}{c+d}} \sqrt {\frac {c (1+\csc (e+f x))}{c-d}} \Pi \left (\frac {c+d}{d};\sin ^{-1}\left (\frac {\sqrt {g} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {g \sin (e+f x)}}\right )|-\frac {c+d}{c-d}\right ) \tan (e+f x)}{b f}+\frac {2 (b c-a d) \sqrt {-\cot ^2(e+f x)} \sqrt {\frac {d+c \csc (e+f x)}{c+d}} \Pi \left (\frac {2 a}{a+b};\sin ^{-1}\left (\frac {\sqrt {1-\csc (e+f x)}}{\sqrt {2}}\right )|\frac {2 c}{c+d}\right ) \sqrt {g \sin (e+f x)} \tan (e+f x)}{b (a+b) f \sqrt {c+d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 39.50, size = 23019, normalized size = 90.63 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.72, size = 6200, normalized size = 24.41
method | result | size |
default | \(\text {Expression too large to display}\) | \(6200\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {g \sin {\left (e + f x \right )}} \sqrt {c + d \sin {\left (e + f x \right )}}}{a + b \sin {\left (e + f x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {g\,\sin \left (e+f\,x\right )}\,\sqrt {c+d\,\sin \left (e+f\,x\right )}}{a+b\,\sin \left (e+f\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________